package com.his.bean;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 入库操作log日志表
 * @TableName dzm_his_storage_log
 */
public class DzmHisStorageLog implements Serializable {
    /**
     * 更改价格表
     */
    private Integer logId;

    /**
     * 诊所ID
     */
    private Integer companyId;

    /**
     * 采购信息ID
     */
    private Integer purchaseId;

    /**
     * 批次库存编号
     */
    private Long batchesOfInventoryNumber;

    /**
     * 药品ID
     */
    private Integer medicinesId;

    /**
     * 修改人ID
     */
    private Integer modifierId;

    /**
     * 
     */
    private Integer newQuantity;

    /**
     * 新批发价
     */
    private BigDecimal newTradePrice;

    /**
     * 新处方价
     */
    private BigDecimal newPrescriptionPrice;

    /**
     * 原数量
     */
    private Integer oldQuantity;

    /**
     * 原批发价
     */
    private BigDecimal oldTradePrice;

    /**
     * 原处方价
     */
    private BigDecimal oldPrescriptionPrice;

    /**
     * 操作模块；采购：1，审核：2
     */
    private Byte operationModule;

    /**
     * 创建时间
     */
    private Integer createTime;

    private static final long serialVersionUID = 1L;

    /**
     * 更改价格表
     */
    public Integer getLogId() {
        return logId;
    }

    /**
     * 更改价格表
     */
    public void setLogId(Integer logId) {
        this.logId = logId;
    }

    /**
     * 诊所ID
     */
    public Integer getCompanyId() {
        return companyId;
    }

    /**
     * 诊所ID
     */
    public void setCompanyId(Integer companyId) {
        this.companyId = companyId;
    }

    /**
     * 采购信息ID
     */
    public Integer getPurchaseId() {
        return purchaseId;
    }

    /**
     * 采购信息ID
     */
    public void setPurchaseId(Integer purchaseId) {
        this.purchaseId = purchaseId;
    }

    /**
     * 批次库存编号
     */
    public Long getBatchesOfInventoryNumber() {
        return batchesOfInventoryNumber;
    }

    /**
     * 批次库存编号
     */
    public void setBatchesOfInventoryNumber(Long batchesOfInventoryNumber) {
        this.batchesOfInventoryNumber = batchesOfInventoryNumber;
    }

    /**
     * 药品ID
     */
    public Integer getMedicinesId() {
        return medicinesId;
    }

    /**
     * 药品ID
     */
    public void setMedicinesId(Integer medicinesId) {
        this.medicinesId = medicinesId;
    }

    /**
     * 修改人ID
     */
    public Integer getModifierId() {
        return modifierId;
    }

    /**
     * 修改人ID
     */
    public void setModifierId(Integer modifierId) {
        this.modifierId = modifierId;
    }

    /**
     * 
     */
    public Integer getNewQuantity() {
        return newQuantity;
    }

    /**
     * 
     */
    public void setNewQuantity(Integer newQuantity) {
        this.newQuantity = newQuantity;
    }

    /**
     * 新批发价
     */
    public BigDecimal getNewTradePrice() {
        return newTradePrice;
    }

    /**
     * 新批发价
     */
    public void setNewTradePrice(BigDecimal newTradePrice) {
        this.newTradePrice = newTradePrice;
    }

    /**
     * 新处方价
     */
    public BigDecimal getNewPrescriptionPrice() {
        return newPrescriptionPrice;
    }

    /**
     * 新处方价
     */
    public void setNewPrescriptionPrice(BigDecimal newPrescriptionPrice) {
        this.newPrescriptionPrice = newPrescriptionPrice;
    }

    /**
     * 原数量
     */
    public Integer getOldQuantity() {
        return oldQuantity;
    }

    /**
     * 原数量
     */
    public void setOldQuantity(Integer oldQuantity) {
        this.oldQuantity = oldQuantity;
    }

    /**
     * 原批发价
     */
    public BigDecimal getOldTradePrice() {
        return oldTradePrice;
    }

    /**
     * 原批发价
     */
    public void setOldTradePrice(BigDecimal oldTradePrice) {
        this.oldTradePrice = oldTradePrice;
    }

    /**
     * 原处方价
     */
    public BigDecimal getOldPrescriptionPrice() {
        return oldPrescriptionPrice;
    }

    /**
     * 原处方价
     */
    public void setOldPrescriptionPrice(BigDecimal oldPrescriptionPrice) {
        this.oldPrescriptionPrice = oldPrescriptionPrice;
    }

    /**
     * 操作模块；采购：1，审核：2
     */
    public Byte getOperationModule() {
        return operationModule;
    }

    /**
     * 操作模块；采购：1，审核：2
     */
    public void setOperationModule(Byte operationModule) {
        this.operationModule = operationModule;
    }

    /**
     * 创建时间
     */
    public Integer getCreateTime() {
        return createTime;
    }

    /**
     * 创建时间
     */
    public void setCreateTime(Integer createTime) {
        this.createTime = createTime;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        DzmHisStorageLog other = (DzmHisStorageLog) that;
        return (this.getLogId() == null ? other.getLogId() == null : this.getLogId().equals(other.getLogId()))
            && (this.getCompanyId() == null ? other.getCompanyId() == null : this.getCompanyId().equals(other.getCompanyId()))
            && (this.getPurchaseId() == null ? other.getPurchaseId() == null : this.getPurchaseId().equals(other.getPurchaseId()))
            && (this.getBatchesOfInventoryNumber() == null ? other.getBatchesOfInventoryNumber() == null : this.getBatchesOfInventoryNumber().equals(other.getBatchesOfInventoryNumber()))
            && (this.getMedicinesId() == null ? other.getMedicinesId() == null : this.getMedicinesId().equals(other.getMedicinesId()))
            && (this.getModifierId() == null ? other.getModifierId() == null : this.getModifierId().equals(other.getModifierId()))
            && (this.getNewQuantity() == null ? other.getNewQuantity() == null : this.getNewQuantity().equals(other.getNewQuantity()))
            && (this.getNewTradePrice() == null ? other.getNewTradePrice() == null : this.getNewTradePrice().equals(other.getNewTradePrice()))
            && (this.getNewPrescriptionPrice() == null ? other.getNewPrescriptionPrice() == null : this.getNewPrescriptionPrice().equals(other.getNewPrescriptionPrice()))
            && (this.getOldQuantity() == null ? other.getOldQuantity() == null : this.getOldQuantity().equals(other.getOldQuantity()))
            && (this.getOldTradePrice() == null ? other.getOldTradePrice() == null : this.getOldTradePrice().equals(other.getOldTradePrice()))
            && (this.getOldPrescriptionPrice() == null ? other.getOldPrescriptionPrice() == null : this.getOldPrescriptionPrice().equals(other.getOldPrescriptionPrice()))
            && (this.getOperationModule() == null ? other.getOperationModule() == null : this.getOperationModule().equals(other.getOperationModule()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getLogId() == null) ? 0 : getLogId().hashCode());
        result = prime * result + ((getCompanyId() == null) ? 0 : getCompanyId().hashCode());
        result = prime * result + ((getPurchaseId() == null) ? 0 : getPurchaseId().hashCode());
        result = prime * result + ((getBatchesOfInventoryNumber() == null) ? 0 : getBatchesOfInventoryNumber().hashCode());
        result = prime * result + ((getMedicinesId() == null) ? 0 : getMedicinesId().hashCode());
        result = prime * result + ((getModifierId() == null) ? 0 : getModifierId().hashCode());
        result = prime * result + ((getNewQuantity() == null) ? 0 : getNewQuantity().hashCode());
        result = prime * result + ((getNewTradePrice() == null) ? 0 : getNewTradePrice().hashCode());
        result = prime * result + ((getNewPrescriptionPrice() == null) ? 0 : getNewPrescriptionPrice().hashCode());
        result = prime * result + ((getOldQuantity() == null) ? 0 : getOldQuantity().hashCode());
        result = prime * result + ((getOldTradePrice() == null) ? 0 : getOldTradePrice().hashCode());
        result = prime * result + ((getOldPrescriptionPrice() == null) ? 0 : getOldPrescriptionPrice().hashCode());
        result = prime * result + ((getOperationModule() == null) ? 0 : getOperationModule().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", logId=").append(logId);
        sb.append(", companyId=").append(companyId);
        sb.append(", purchaseId=").append(purchaseId);
        sb.append(", batchesOfInventoryNumber=").append(batchesOfInventoryNumber);
        sb.append(", medicinesId=").append(medicinesId);
        sb.append(", modifierId=").append(modifierId);
        sb.append(", newQuantity=").append(newQuantity);
        sb.append(", newTradePrice=").append(newTradePrice);
        sb.append(", newPrescriptionPrice=").append(newPrescriptionPrice);
        sb.append(", oldQuantity=").append(oldQuantity);
        sb.append(", oldTradePrice=").append(oldTradePrice);
        sb.append(", oldPrescriptionPrice=").append(oldPrescriptionPrice);
        sb.append(", operationModule=").append(operationModule);
        sb.append(", createTime=").append(createTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}